package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.entity.Merchant;
import com.huiminpay.merchant.entity.Store;
import com.yh.merchant.dto.MerchantDTO;
import com.yh.merchant.dto.StoreDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/2615:32
 * @Desc:
 */
@Mapper
public interface StoreConvert {

    StoreConvert INSTANCE = Mappers.getMapper(StoreConvert.class);

    StoreDTO entity2dto(Store store);

    Store dto2entity(StoreDTO storeDTO);

    List<StoreDTO> entityList2dtoList(List<Store> list);

    List<Store> dtoList2entityList(List<StoreDTO> list);
}
